﻿using System.Web.UI;
using Umbraco.Cms.Web.Model.BackOffice.PropertyEditors;

[assembly: WebResource("Our.Umbraco.Web.PropertyEditors.Markdown.Resources.wmd.css", "text/css", PerformSubstitution = true)]
[assembly: WebResource("Our.Umbraco.Web.PropertyEditors.Markdown.Resources.Markdown.Converter.js", "application/x-javascript")]
[assembly: WebResource("Our.Umbraco.Web.PropertyEditors.Markdown.Resources.Markdown.Sanitizer.js", "application/x-javascript")]
[assembly: WebResource("Our.Umbraco.Web.PropertyEditors.Markdown.Resources.Markdown.Editor.js", "application/x-javascript")]
[assembly: WebResource("Our.Umbraco.Web.PropertyEditors.Markdown.Resources.wmd-buttons.png", "image/png")]
namespace Our.Umbraco.Web.PropertyEditors.Markdown
{
    [PropertyEditor("F766C1B0-45ED-11E1-BA1D-BCBE4724019B", "Markdown", "Markdown")]
    public class MarkdownEditor : PropertyEditor<MarkdownEditorModel, MarkdownPreValueModel>
    {
        public override MarkdownEditorModel CreateEditorModel(MarkdownPreValueModel preValues)
        {
            return new MarkdownEditorModel(preValues);
        }

        public override MarkdownPreValueModel CreatePreValueEditorModel()
        {
            return new MarkdownPreValueModel();
        }
    }
}
